why top -10 css

35

.parent {
    position: relative;
    height: 100px;
}
.child {
    position: absolute;
    top: 50%;
}

Comments

Submit
0 Comments